<?php


namespace App\Models\Garbage;
use App\Models\CarModels\CarArea;
use App\Models\SystemManagement\Employee;
use App\Models\SystemManagement\User;
use Illuminate\Database\Eloquent\Model;


class GarbageCollectReward extends Model
{
    /**
     *
     */
    protected $table = 'garbage_collect_rewards';
    protected $fillable = ['areas_id','garbage_kind_id','reward_point','reward_money','staff_id'];


    public function kind()
    {
        return $this->belongsTo(GarbageKind::class,'garbage_kind_id','id');
    }

    public function staff()
    {
        return $this->belongsTo(Employee::class,'staff_id','id');
    }

    public function area()
    {
        return $this->belongsTo(CarArea::class,'areas_id','id');
    }


}